import { request } from "@/utils/service"
import type * as Main from "./types/main"

/** 获取统计概况 */
export function statSummaryApi() {
  return request<Main.StatSummaryResponseData>({
    url: "stat/summary",
    method: "get"
  })
}

/** 周/月工时统计*/
export function weekBarApi(data: Main.WeekLookupRequestData) {
  return request<Main.EchartsSimpleLineResponseData>({
    url: "stat/weekBar",
    method: "post",
    data
  })
}
